/* ====================================================================
 * (#)Header: CollectionUtils.java
 * (#)Revision: 
 * (#)Date Created: Mar 2, 2007 12:07:22 AM
 * (#)Created By: Karol Wozniak
 * ====================================================================
 *
 * Copyright (c) 2007 karolak .  All rights reserved.
 *
 * ====================================================================
 * 
 * The software application represented here is the sole property of 
 * karolak. Its unauthorized utilization is expressly prohibited.
 * 
 * ====================================================================
 */
package com.karolak.collection;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * <code>CollectionUtils</code> is used to ....
 * 
 * @author <a href="mailto:kwozniak@hotmail.com">Karol Wozniak</a>
 */
public class CollectionUtils {

	public static <T> void sort(List<T> entities, Comparator<T> comparator, String... properties) {
		if (entities == null || entities.isEmpty()) {
			return;
		}
		if (comparator == null) {
			return;
		}
		Collections.sort(entities, comparator);
	}
}
